package com.jt.mapper;

import com.jt.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
  List<User>findAll();

  User test02(int id);

  int saveUser(User user);

  int updateUser(User user);


  int deleteUser(String name);

  List<User> findUserByAge(Map<String, Object> map);

  List<User> findUserByAge1(@Param("minAge") Integer minAge,
                            @Param("maxAge") Integer maxAge);

  List<User> findByLike(String name);

  List<User> findInArray(Integer[] ids);

  List<User> findInMap(@Param("ids1") Integer[] ids1,
                       @Param("ids2") Integer[] ids2);


}
